import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
    // 默认路由， path 为空(不是空格)，是默认展示此组件，或者说白了，这个配置项的路由就是 /employees
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index.vue'),
      // 路由对象里配置的额外信息
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail',
      name: 'employeesDetail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true // 保证员工在左侧菜单是一层的渲染
    }
  ]
}
